const IssueColumns = [
  {
    title: "序号",
    dataIndex: "index",
    key: "index",
    customRender: (text, record, index) => `${index + 1}`,
    align: "center",
  },
  {
    title: "出库单号",
    dataIndex: "outStoreNum",
    key: "outStoreNum",
    align: "center",
  },
  {
    title: "备料单号",
    dataIndex: "materialPrepareNum",
    key: "materialPrepareNum",
    align: "center",
  },
  {
    title: "加工单号",
    dataIndex: "workSheetNum",
    key: "workSheetNum",
    align: "center",
  },
  {
    title: "商品编号",
    dataIndex: "goodsCode",
    key: "goodsCode",
    align: "center",
  },
  {
    title: "出库总数",
    dataIndex: "outStoreCount",
    key: "outStoreCount",
    align: "center",
  },

  {
    title: "机台",
    dataIndex: "equipmentName",
    key: "equipmentName",
    align: "center",
  },
  {
    title: "仓库经办人",
    dataIndex: "materialPrepareUsername",
    key: "materialPrepareUsername ",
    align: "center",
  },
  {
    title: "签收人",
    dataIndex: "receiveMaterialUsername",
    key: "receiveMaterialUsername",
    align: "center",
  },
];

const ReceiptColumns = [
  {
    title: "序号",
    dataIndex: "index",
    key: "index",
    customRender: (text, record, index) => `${index + 1}`,
    align: "center",
  },
  {
    title: "入库单号",
    dataIndex: "acceptanceNum",
    key: "acceptanceNum",
    align: "center",
  },
  {
    title: "加工单号",
    dataIndex: "processNum",
    key: "processNum",
    align: "center",
  },
  {
    title: "商品编码",
    dataIndex: "goodsCode",
    key: "goodsCode",
    align: "center",
  },
  {
    title: "商品名称",
    dataIndex: "goodsName",
    key: "goodsName",
    align: "center",
  },
  {
    title: "商品规格",
    dataIndex: "specifications",
    key: "specifications",
    align: "center",
  },
  {
    title: "库位",
    dataIndex: "shelfNames",
    key: "shelfNames",
    align: "center",
    scopedSlots: { customRender: "shelfNames" },
  },
  {
    title: "入库总数量",
    dataIndex: "wareNum",
    key: "wareNum",
    align: "center",
  },

  {
    title: "入库时间",
    dataIndex: "createtime",
    key: "createtime",
    align: "center",
    customRender: (text, record, index) => {
      return filterDate(text);
    },
  },
  {
    title: "入库人",
    dataIndex: "createdBy",
    key: "createdBy",
    align: "center",
  },
  //   {
  //     title: "操作",
  //     dataIndex: "action",
  //     key: "action",
  //     align: "center",
  //     width: 150,
  //     fixed: "right",
  //     scopedSlots: { customRender: "action" },
  //   },
];
export { IssueColumns, ReceiptColumns };
